Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.search.ui.urlservice--urlpatterns

This contribution is part of XML component org.nuxeo.search.ui.urlservice inside nuxeo-search-ui-7.10-HF03.jar /OSGI-INF/search-url-service-contrib.xml

Extension Point

Extension point urlpatterns of component URLService.

Contributed Items

  • <urlPattern enabled="true" name="search">
          <defaultURLPolicy>false</defaultURLPolicy>
          <needBaseURL>true</needBaseURL>
          <needRedirectFilter>true</needRedirectFilter>
          <needFilterPreprocessing>true</needFilterPreprocessing>
          <codecName>docpathsearch</codecName>
          <actionBinding>
            #{searchUIActions.loadPermanentLink}
          </actionBinding>
          <documentViewBindingApplies>
            #{mainTabsActions.isOnMainTab('search')}
          </documentViewBindingApplies>
          <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
          <newDocumentViewBinding>
            #{restHelper.getNewDocumentView(null)}
          </newDocumentViewBinding>
          <bindings>
            <binding name="tabIds">#{searchUIActions.searchMainTab}</binding>
            <binding callGetter="false" name="language">
              #{restHelper.localeString}
            </binding>
            <binding callGetter="true" name="contentViewName">
              #{searchUIActions.currentContentViewName}
            </binding>
            <binding callGetter="true" name="currentPage">
              #{searchUIActions.currentPage}
            </binding>
            <binding callGetter="true" name="pageSize">
              #{searchUIActions.pageSize}
            </binding>
            <binding callGetter="false" name="state">
              #{searchUIActions.state}
            </binding>
            <binding callGetter="false" name="searchTerm">
              #{searchUIActions.searchTerm}
            </binding>
          </bindings>
        </urlPattern>

XML Source

<extension point="urlpatterns" target="org.nuxeo.ecm.platform.ui.web.rest.URLService">

    <urlPattern enabled="true" name="search">
      <defaultURLPolicy>false</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>true</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>docpathsearch</codecName>
      <actionBinding>
        #{searchUIActions.loadPermanentLink}
      </actionBinding>
      <documentViewBindingApplies>
        #{mainTabsActions.isOnMainTab('search')}
      </documentViewBindingApplies>
      <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
      <newDocumentViewBinding>
        #{restHelper.getNewDocumentView(null)}
      </newDocumentViewBinding>
      <bindings>
        <binding name="tabIds">#{searchUIActions.searchMainTab}</binding>
        <binding callGetter="false" name="language">
          #{restHelper.localeString}
        </binding>
        <binding callGetter="true" name="contentViewName">
          #{searchUIActions.currentContentViewName}
        </binding>
        <binding callGetter="true" name="currentPage">
          #{searchUIActions.currentPage}
        </binding>
        <binding callGetter="true" name="pageSize">
          #{searchUIActions.pageSize}
        </binding>
        <binding callGetter="false" name="state">
          #{searchUIActions.state}
        </binding>
        <binding callGetter="false" name="searchTerm">
          #{searchUIActions.searchTerm}
        </binding>
      </bindings>
    </urlPattern>

  </extension>